#ifndef PICKEL_H
#define PICKEL_H

#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QMessageBox>

#include "ui_pickel.h"

#include "notescabinet.h"
#include "psettingsdialog.h"

enum NoteActions {
	NewNote,
	NewNoteBook,
	RenameNote,
	DeleteNote,
	CloseNote
};

class NotesCabinet;

namespace Ui
	{
		class PicKelClass;
	}

class PicKel : public QMainWindow
	{
		Q_OBJECT

		public:
			PicKel(QWidget *parent = 0);
			~PicKel();

			QAction *notesAction(NoteActions) const;
			QSettings *settingsConf() const;

		protected:
			void closeEvent(QCloseEvent *);

		private:
			QSystemTrayIcon *trayIcon;
			PSettingsDialog *settingsDiag;
			NotesCabinet *cabinet;
			Ui::PicKelClass *ui;

		private slots:
			void about();
			void aboutQt();
			void iconTriggered(QSystemTrayIcon::ActivationReason);
			void showNoteBooks(bool);

		signals:
			void updateGUI();
	};

#endif // PICKEL_H
